package com.yunwaikeji.gy_tool_library.mvvm.view.activity

import android.os.Bundle
import com.yunwaikeji.gy_tool_library.mvvm.viewmodel.GYViewModel
import com.yunwaikeji.gy_tool_library.widget.recycler.GYAdapterRefresh

abstract class GYRefreshActivity<Model, ViewModel : GYViewModel> : GYApiActivity<ViewModel>() {
    val mAdapterRefresh = GYAdapterRefresh<Model>()

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        mAdapterRefresh.setLoadingLayout(mViewAdmin.loadingLayout)
            .setSmartRefreshLayout(mViewAdmin.smartRefreshLayout)
    }
}